summaryrefslogtreecommitdiff
path: root/ui/routes/(app)/ch/[channel]/+page.svelte
blob: 49c1c29e4a9deff9df2210b6a6c78d73b03a8989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
  import { page } from '$app/stores';
  import ActiveChannel from '$lib/components/ActiveChannel.svelte';
  import MessageInput from '$lib/components/MessageInput.svelte';

  let channel = $derived($page.params.channel);
</script>

<div class="active-channel">
  <ActiveChannel {channel} />
</div>
<div class="create-message max-h-full">
  <MessageInput {channel} />
</div>

<style>
  .active-channel {
    height: calc(
      100vh - var(--app-bar-height) - var(--interface-padding) - var(--input-row-height)
    );
    overflow: auto;
  }
</style>